<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head lang="zh">
    <meta charset="UTF-8">
    <title></title>

</head>
<body>
    <table border="1" width="50%" align="center">
        <tr bgcolor="#cccc00">
            <td align="center">UserID</td>
            <td align="center">UserName</td>
            <td align="center">Password</td>
        </tr>

        <%
            List res = (List)request.getAttribute("list");
            for(int i=0;res!=null&&i<res.size();i++){
            User user = (User)res.get(i);
        %>
        <tr>
            <td align="center"><%=user.getId() %></td>
            <td align="center"><%=user.getUserName() %></td>
            <td align="center"><%=user.getPassword() %></td>
        </tr>
        <%
            }
        %>

    </table>
</body>
</html>
